package ezonsport.android.core.stepSystem;

import com.j256.ormlite.dao.ForeignCollection;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.field.ForeignCollectionField;
import com.j256.ormlite.table.DatabaseTable;

import ezonsport.android.core.systemManage.User;

/**
 * 手表类
 * 
 * @author Administrator chenbei
 * @since 2012-6-8
 * 
 */
@DatabaseTable(tableName = "T_Watch")
public class Watch {
	@DatabaseField(id = true)
	private long watchID;// 手表ID，惟一
	@DatabaseField
	private String watchType;// 手表类型
	@DatabaseField(foreign = true, foreignAutoRefresh = true)
	private User user; // 关联用户
	// @ForeignCollectionField(eager = false)
	// private ForeignCollection<SportData> sportDatas;// 手表汇集多条运动记录
	// @ForeignCollectionField(eager = false)
	// private ForeignCollection<SportPlan> sportPlans;// 在手表上制订的运动计划

	public Watch() {
	}

	public long getWatchID() {
		return watchID;
	}

	public void setWatchID(long watchID) {
		this.watchID = watchID;
	}

	public String getWatchType() {
		return watchType;
	}

	public void setWatchType(String watchType) {
		this.watchType = watchType;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Watch [watchID=");
		builder.append(watchID);
		builder.append(", watchType=");
		builder.append(watchType);
		builder.append("]");
		return builder.toString();
	}

}
